package serveurPoste;

public class Infraction {
	private int mId;
	private String mDescription;
	private int mNiveau;
	
	public Infraction(int id, String description, int niveau){
		this.mId = id;
		this.mDescription = description;
		this.mNiveau = niveau;
	}


	public int id(){
		return mId;
	}
	
	public int niveau(){
		return mNiveau;
	}
	
	public String description(){
		return mDescription;
	}
	
	public String toString(){
		return "Infraction id"+mId +" niveau " + mNiveau +" : " +mDescription ;
	}
}
